﻿using CID.Execution.Support.Contracts;
using CID.Execution.Support.Scripting;
using NailsFramework;

namespace CID.Execution.Agent.Service
{
    class AgentServiceWCFWrapper : IAgentService
    {
        IAgentCoordinator coordinator;

        public AgentServiceWCFWrapper()
        {
            coordinator = Nails.ObjectFactory.GetObject<IAgentCoordinator>();
        }

        public void StartDeactivation(LocationDeactivationScript script)
        {
            coordinator.Dispatch(script);
        }

        public void StartDeployment(LocationDeploymentScript script)
        {
            coordinator.Dispatch(script);
        }

        public void StartActivation(LocationActivationScript script)
        {
            coordinator.Dispatch(script);
        }
    }
}
